package com.study.studycase.demo2;

/**
 * @author ctl
 * @date 2024-01-11
 */
public class demo2 {
    public static void main(String[] args) {
        System.out.println("1111");
        String s1 = new String("aaa");
        String s2 = new String("bbb");
        System.out.println(s1 == s2);           // false
        String s3 = s1.intern();
        System.out.println(s1 == s3);
    }
}
